package com.aaa.service.back.Impl;

import com.aaa.entity.Supplier;
import com.aaa.mapper.back.SupplierMapper;
import com.aaa.service.back.SupplierService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class SupplierServiceImpl implements SupplierService {

    @Resource
    private SupplierMapper supplierMapper;

    @Override
    public List<Map<String, Object>> findSupplier() {
        return supplierMapper.findSupplier();
    }

    @Override
    public Map<String, Object> findSupplierBySupplierId(String supplierId) {
        return supplierMapper.findSupplierBySupplierId(supplierId);
    }

    @Override
    public int addSupplier(Supplier supplier) {
        return supplierMapper.addSupplier(supplier);
    }

    @Override
    public int editSupplier(Supplier supplier) {
        return supplierMapper.editSupplier(supplier);
    }
}
